import React from "react";
import IdSelect from "components/id-select";
import { useUsers } from "server";

const UserSelect: React.FC<React.ComponentProps<typeof IdSelect>> = (props) => {
  const { data: users } = useUsers();

  return <IdSelect options={users || []} {...props} />;
};

export default UserSelect;
